Local $arr = ObjCreate('System.Collections.ArrayList');
$arr.Add('lorem')
$arr.Add('ipsum')
$arr.Add('dolor')

For $i = 0 To $arr.Count - 1
    ConsoleWrite('arr[' & $i & '] == ' & $arr.Item($i) & @CRLF)
Next